package com.huadi.ssm.Service;

import com.huadi.ssm.dao.FireMapper;
import com.huadi.ssm.po.Fire;

import java.util.List;

public class FireImpl implements FireService {

    private FireMapper fireMapper;

    public void setFireMapper(FireMapper fireMapper) {
        this.fireMapper = fireMapper;
    }

    @Override
    public int addFire(Fire fire) {
        return fireMapper.addFire(fire);
    }

    @Override
    public int deleteFireById(String fireId) {
        return fireMapper.deleteFireById(fireId);
    }

    @Override
    public int updateFire(Fire fire) {
        return fireMapper.updateFire(fire);
    }

    @Override
    public Fire findFireById(String fireId) {
        return fireMapper.findFireById(fireId);
    }

    @Override
    public List<Fire> findAllFire() {
        return null;
    }
}
